package mm.chenchen.modules.job.task;


import lombok.extern.slf4j.Slf4j;
import mm.chenchen.script.ScriptUtils;
import org.springframework.stereotype.Component;

@Component("scriptTask")
@Slf4j
public class ScriptTask implements ITask {


    @Override
    public void run(String params) {
        log.info("scriptTask定时任务开始执行，参数为：{}", params);
        ScriptUtils.exec(params);
        log.info("scriptTask定时任务执行完毕!");
    }
}
